#ifndef __NETWORK_H
#define __NETWORK_H

#include <http.h>

// ssl - "SSLv3:RC4-MD5", the rest is 0's
int CreateSSLContext(const char* ssl,const char* cert,const char* key,const char* pass);
int DestroySSLContext(void);

// connection, read, write
int SetHttpTimeouts(int c,int r,int w);

// proxy format: domain/login:passwd@host:port
int SendHttpRequest(const char* agent,const char* url,const char* proxy,const char* request,int nrequest,char** answer);
int FreeHttpAnswer(char* answer);

const char* getHttpLastError();

#endif
